package com.itheima.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.ClearOrderService;
import org.springframework.stereotype.Component;

@Component
public class ClearOrderdataJob {

    @Reference
    private ClearOrderService clearOrderService;

    public void clearOrderdata() throws Exception {
       clearOrderService.deleteOrder();
    }
}
